package com.tudouji.common.enums;

public enum WlinfoitemStatusEnum {

	DAN("0","单"),ZHU("1","主信息"),CONG("2","从信息");

	private String code;
    private String name;

    WlinfoitemStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (WlinfoitemStatusEnum adStatus : WlinfoitemStatusEnum.values()) {
            if (adStatus.code == code) {
                return adStatus.name;
            }
        }
        return "未知物流状态";
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
